package com.bgs.mapper;
import com.bgs.pojo.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgs.pojo.vo.OrderTow;
import com.bgs.pojo.vo.OneOrderAndDetail;
import com.bgs.pojo.vo.ThreeJsonApp;
import com.bgs.pojo.vo.ThreeSelectIOIO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

import com.bgs.pojo.vo.FourOrderMidd;
/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
public interface OrderMapper extends BaseMapper<Order> {
    //查看用户购买商品订单
    List<OrderTow> TowGetOrder(Integer beforeUserId);
    //用户进行退货
    int TowOrderUp(Integer beforeUserId);
    /*根据用户名的id查询用户的全部订单*/
    List<OneOrderAndDetail>  OneOrderrUserId(Integer beforeUserId);

    //查询订单
    List<FourOrderMidd> fourQueryOrder(Integer id);
    List<OneOrderAndDetail> OneOrderrUserIdByStatus0(Integer beforeUserId);

    List<OneOrderAndDetail> OneOrderrUserIdByStatus1(Integer beforeUserId);

    List<OneOrderAndDetail> OneOrderrUserIdByStatus2(Integer beforeUserId);

    List<OneOrderAndDetail> OneOrderrUserIdByStatus3(Integer beforeUserId);

    List<OneOrderAndDetail> OneOrderrUserIdByStatus4(Integer beforeUserId);

    List<OneOrderAndDetail> OneOrderrUserIdByStatus5(Integer beforeUserId);

    boolean updateByOrderId(Integer orderId);

    Integer queenOrder(ThreeJsonApp threeJsonApp);

    boolean ThreeAddZ(ThreeJsonApp threeJsonApp);

    ThreeSelectIOIO selectThreeAdd(String uuid);
    //查询用户已退货的商品记录
    List<OrderTow> TowTuiOrder(Integer beforeUserId);
}
